package com.i2863.receiptinterface.mapper;

import com.i2863.receiptinterface.entity.Receipt;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface ReceiptMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(Receipt record);

    Receipt selectByPrimaryKey(Integer id);

    List<Receipt> selectAll();

    int updateByPrimaryKey(Receipt record);

    Receipt findByCodeAndCodeNum(@Param("code")String code, @Param("codeNum")String codeNum);

    List<Receipt> findByPhoneNum(@Param("phoneNum")String phoneNum,@Param("endActivityIds")List<Integer> endActivityIds
            ,@Param("lastId")Integer lastId,@Param("pageSize")int pageSize);
}